
public class Text {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.TreeNode();
        //System.out.println(root.val);
        //binaryTree.preOrder(root);
        //System.out.println();
        /*binaryTree.size(root);
        System.out.print("节点的个数:");
        System.out.println(BinaryTree.nodeSize);
        System.out.println(binaryTree.getLeafNodeCount(root));
        binaryTree.getLeafNodeCount2(root);
        System.out.println(BinaryTree.treeNode);
        System.out.println(binaryTree.getKLevelNodeCount(root, 3));*/
        //binaryTree.levelOrder(root);

        /*boolean flg = binaryTree.isCompleteTree(root);
        System.out.println(flg);
        BinaryTree.TreeNode cur = binaryTree.lowestCommonAncestor2(root,root.left.right,root.left.left.left);
        System.out.println(cur);*/

        /*int[] A = {3,9,20,15,7};
        int[] B = {9,3,15,20};
        binaryTree.buildTree(A,B);*/



    }
}
